<?php

/*
 * gpa_new Description
 * date 17 Feb 10
 * time 2:28:37
 * @$package
 * @name albums_html
 * @filesource albums_html.php
 * @author Hanny Setiawan
 */

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title><?php echo $page_title; ?></title>
<script src="<?php echo getJsUrl(); ?>jquery.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo getAppCssUrl(); ?>gallery.css" type="text/css">
<link rel="stylesheet" href="<?php echo getCssUrl(); ?>user/user.css" type="text/css">
<link rel="stylesheet" href="<?php echo getCssUrl(); ?>home/home.css" type="text/css">

<!-- start jQuery menu -->
<link type="text/css" href="<?php echo getCssUrl(); ?>menu_apycom/menu.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo getJsUrl(); ?>menu_apycom/menu.js"></script>
<!-- end of jQuery menu -->

<!-- start Lightbox Gallery Image-->
<script src="<?php echo getJsUrl(); ?>prettyPhoto/prettyPhoto.js" type="text/javascript"></script>
<script src="<?php echo getJsUrl(); ?>prettyComments/prettyComments.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo getCssUrl(); ?>prettyPhoto/prettyPhoto.css" type="text/css" media="screen"/>
<!-- end Lightbox Gallery Image -->

<!-- start Gallery Vertical -->
<link rel="stylesheet" href="<?php echo getCssUrl(); ?>ImageVertCarrousel/scroll.css" type="text/css" media="screen"/>
<script type='text/javascript' src="<?php echo getJsUrl(); ?>ImageVertCarrousel/jquery.imageScroller.js"></script>
<script type='text/javascript' src="<?php echo getJsUrl(); ?>ImageVertCarrousel/test.js"></script>
<!-- end Gallery Vertical -->

<!-- start jQuery Image Details -->
<script type="text/javascript">
    $(document).ready(function(){
        $(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
    });
<!-- end jQuery Image Details -->

</script>

</head>
<body>

<div id="root">
    <div id="Table_01">
        <div id="index">
    	<div id="leftTop">
            <img class="logo" src="<?php echo getImgUrl(); ?>/home/logogpa.png" width="310" height="90" alt="Logo GPA">
        </div>
  		<div id="rightTop">
        	<div id="rTop">
            	<div class="login">
                	<div class="login-text">
                		<?php echo $usermenus; ?>
                    </div>
                    <div class="login-box">
                    	<input name="login-field" type="text" maxlength="30">
                    </div>
                </div>
            </div>
        	<div id="rBottom">
        		<div id="menu">
				<?php echo $mainmenus; ?>
                </div>
        	</div>
    	</div>
	</div>
        <div id="index002">
            <div id="add-menu">
                <?php if(@$self_profile) { ?>
                <div id="add-menu-link">
                    <a href="<?php echo getHttpUrl(); ?>user/profile/">Profile Overview</a> |
                </div>
                <div id="add-menu-link">
                    <a href="<?php echo getHttpUrl(); ?>user/edit/">Edit Profile</a> |
                </div>
                <div id="add-menu-link">
                    <a href="<?php echo getHttpUrl(); ?>user/tools/">Tools</a> |
                </div>
                <div id="add-menu-link">
                    <a href="<?php echo getHttpUrl(); ?>user/albums/">Albums</a> |
                </div>
                <div id="add-menu-link">
                    <a href="<?php echo getHttpUrl(); ?>user/upgrade/">UPGRADE MEMBERSHIP!</a>
                </div>
                <?php } ?>
            </div>
            <div class="content">
                <?php if(!empty($error_message)): ?>
                <p class="error"><?php echo $error_message; ?></p>
                <?php endif; ?>
                <?php if(count($albums)): ?>
                <h3><?php echo $user_name; ?>'s albums</h3>
                <ul class="albums">
                    <?php foreach($albums as $album): ?>
                    <li>
                        <b><a href="<?php echo getAppUrl('user', 'album') . '/' . $album['album_id'] ?>"><?php echo $album['album_name'] . (intval($album['private'])?' (private)':''); ?></a></b>
                        <br/>
                        <a href="<?php echo getAppUrl('user', 'album') . '/' . $album['album_id'] ?>"><img src="<?php echo getImgUrl(); ?>/thumbnails/150/12673300610938fc0cad8197c1e679d681ceb68cbace1c-112x150.jpg" alt="Photo Title"/></a>
                        <div><?php echo $album['photos_count']; ?> Photos</div>
                        <div><a href="<?php echo getAppUrl('user', 'delete_album') . '/' . $album['album_id'] ?>">delete</a></div>
                    </li>
                    <?php endforeach; ?>
                </ul>
                <?php endif; ?>

                <div class="form-add-albums">
                <form method="post" action="<?php echo getAppUrl('user', 'add_album'); ?>"`>
                    <h3>Add New Album</h3>
                    <table border="0" cellpadding="5" cellspacing="0">
                        <tr>
                            <td>Album Name :</td>
                            <td><input class="dark" type="text" maxlength="255" name="album_name"/></td>
                        </tr>
                        <tr>
                            <td>Private :</td>
                            <td>
                                <select class="dark" name="private">
                                    <option value="0">No</option>
                                    <option value="1">Yes</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td><input  id="button" type="submit" name="add_album" value="Add"/></td>
                        </tr>
                    </table>
                </form>
                </div>
            </div>
	</div>
    </div>
</div>
    	<a id="thanks" href="http://apycom.com/">Apycom jQuery Menus</a>
</body>
</html>